package com.wuzhazha.javamind.chapter15.test02;

/**
 * 2维元组
 * @param <A>
 * @param <B>
 */
public class TwoTuple<A,B> {

    public final A first;

    public final B second;

    public TwoTuple(A a,B b) {
        this.first = a;
        this.second = b;
    }

    public String toString(){
        return "(" + first + "," + second + ")";
    }
}
